package modele;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class RandomBoard {

	protected List<AbstractCell> lst;
	protected int longueur;
	
	public RandomBoard(int l){
		longueur = l;

		lst = new ArrayList<AbstractCell>();
		Random rd = new Random();
		int n;
		lst.add(new NormalCell(0));
		
		for(int i=1;i<longueur;i=i+1){
			n = rd.nextInt(100);
			
			if(n<=25 && n>=14)
				lst.add(new GooseCell(i));
			else if(n<=13 && n>=9)
				lst.add(new TrapCell(i));
			else if(n<=8 && n>=4)
				lst.add(new TeleportCell(i, 0));
			else if(n<=3)
				lst.add(new WaitCell(i));
			else
				lst.add(new NormalCell(i));

			System.out.print("|"+lst.get(i).numCell+lst.get(i).typeCell+"|");
		}
		
		
	}
	
	
	
}
